#!/bin/bash
echo $WORKSPACE
cd $WORKSPACE

if [ -z "$TZ" ]; then
    export TZ=Asia/Shanghai
    echo "TZ环境变量已设置为Asia/Shanghai"
else
    echo "TZ环境变量已存在: $TZ"
fi

# 安装依赖包
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

# 以可编辑模式安装包
pip install -e .

# 运行Python脚本
python3 ./blivedm/monitors/web_monitor.py